<!-- 实验室管理 开放管理:基地资料 -->
<template>
	<view>	
	
	<scroll-view class="content" scroll-y @scrolltolower="scrollButtonClick" id="height" :style="'height:' + height + 'px ;'">
		
	 <u-card :title="title1"  :thumb="thumb1" >
		<template v-slot:body>
			<view >
				<view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
					<view class="u-body-item-title u-line-2">外向性格:<u-rate active-color="#FA3534" inactive-color="#b2b2b2" gutter="20" value=4></u-rate></view>
				</view>
				<view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
					<view class="u-body-item-title u-line-2">运动热情:<u-rate active-color="#FA3534" inactive-color="#b2b2b2" gutter="20" value=3></u-rate></view>
				</view>
				<view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
					<view class="u-body-item-title u-line-2">学科兴趣:<u-rate active-color="#FA3534" inactive-color="#b2b2b2" gutter="20" value=2></u-rate></view>
				</view>
			</view>
		</template>
		<template v-slot:foot>
			<view class=""><u-icon name="chat-fill" size="34" color="" label="2025-03-15 19:00:09"></u-icon></view>
		</template>
	</u-card>
	
	<u-card :title="title2"  :thumb="thumb2">
		<template v-slot:body>
			<view>			
				<view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
					<view class="u-body-item-title u-line-2">外向性格:<u-rate active-color="#FA3534" inactive-color="#b2b2b2" gutter="20" value=3></u-rate></view>
				</view>
				<view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
					<view class="u-body-item-title u-line-2">运动热情:<u-rate active-color="#FA3534" inactive-color="#b2b2b2" gutter="20" value=2></u-rate></view>
				</view>
				<view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
					<view class="u-body-item-title u-line-2">学科兴趣:<u-rate active-color="#FA3534" inactive-color="#b2b2b2" gutter="20" value=3></u-rate></view>
				</view>			
			</view>
		</template>
		<template v-slot:foot>
			<view class=""><u-icon name="chat-fill" size="34" color="" label="2025-03-18 17:35:21"></u-icon></view>
		</template>
	</u-card>
	
	
	</scroll-view>
	
	
	</view>
</template>

<script>
	import uniFab from '@/components/uni-fab/uni-fab.vue';
	import uniSwipeAction from '@/components/uni-swipe-action/uni-swipe-action.vue'
	import uniSwipeActionItem from '@/components/uni-swipe-action-item/uni-swipe-action-item.vue'
	export default {
		components: {
			uniFab,
			uniSwipeAction,
			uniSwipeActionItem
		},
		data() {
			return {
				title1: '刘阿斗',
				title2: '貂蝉',
				thumb1: 'http://180.166.193.6:90/images/study/student.png',
				thumb2: 'http://180.166.193.6:90/images/study/student2.png',
							
				show: false,
				search: '',
				rows: 10,
				page: 1,
				total: 1,
				height: 0,
				staffList: [],
				horizontal: 'right',
				vertical: 'bottom',
				direction: 'horizontal',
			}
		},
		onLoad() {
			//this.init();
		},
		computed: {
			staffs: function() {
				let search = this.search;
				let staffList = this.staffList;
				// console.log(staffList)
				if (search) {
					return staffList.filter(function(product) {
						return Object.keys(product).some(function(key) {
							return String(product[key]).toLowerCase().indexOf(search) > -1
						})
					})
				}
				return staffList
			}
		},
		mounted() {
			uni.getSystemInfo({
				success: (res) => {
					this.height = res.windowHeight;
				}
			});
		},
		onShow() {
			this.staffs.length = 0;
			this.$forceUpdate();
		},
		methods: {
			// 日历打开
			calopen() {
			  this.currentDate = new Date().toLocaleDateString();
			  console.log(this.currentDate);
			  this.show = true ;
			},
			
			scrollButtonClick() {
				console.log("scrollButtonClick")
			},
			staffflow(item) {
				uni.navigateTo({
					url: './3form?id=' + item.F_Id
				})
			},
			removeDetils(item, index) {
				console.log(item)
			},
			creqateopen() {
				uni.navigateTo({
					url: './3form'
				});
			}
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #f0f2f6;
	}
	.jn-item-cell-left {
		width: 46%;
	}

	.search-input {
		background: #FFFFFF;
	}

	.item {
		border-radius: 10upx;
		width: 100%;

		.jn-item-cell {
			padding: 0;
			background-color: #FFFFFF;
			.jn-list-cell {
				padding: 0 20upx;
				margin-bottom: 10upx;

				&.cell {
					height: 48upx;
					.rightWidth{
						width: 200rpx;
					}
				}
			}
		}

		.head {
			height: 66upx;
			border-bottom: 1upx solid #e5e5e5;
		}
	}
	
	//2025.03.31
	.u-card-wrap { 
			background-color: $u-bg-color;
			padding: 1px;
		}
		
	.u-body-item {
		font-size: 32rpx;
		color: #333;
		padding: 20rpx 10rpx;
	}
		
	.u-body-item image {
		width: 120rpx;
		flex: 0 0 120rpx;
		height: 120rpx;
		border-radius: 8rpx;
		margin-left: 12rpx;
	}
</style>
